package com.patchmanage.back.entity;

    import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
* <p>
    * 
    * </p>
*
* @author huizhao
* @since 2021-04-15
*/
    @ApiModel(value="Admin对象", description="")
    public class Admin implements Serializable {

    private static final long serialVersionUID = 1L;

            @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

            @ApiModelProperty(value = "用户名")
    private String username;

            @ApiModelProperty(value = "密码")
    private String password;

            @ApiModelProperty(value = "昵称")
    private String nickname;

            @ApiModelProperty(value = "角色")
    private Integer role;

    private String roleName;

            @ApiModelProperty(value = "用户类型 0内置用户1内部员工")
    private Integer type;

            @ApiModelProperty(value = "资产组ids")
    private String departmentGroupIds;

            @ApiModelProperty(value = "允许登录的ip范围")
    private String appleIps;

            @ApiModelProperty(value = "电子邮箱")
    private String email;

    private LocalDateTime createTime;

        public Integer getId() {
        return id;
        }

            public void setId(Integer id) {
        this.id = id;
        }
        public String getUsername() {
        return username;
        }

            public void setUsername(String username) {
        this.username = username;
        }
        public String getPassword() {
        return password;
        }

            public void setPassword(String password) {
        this.password = password;
        }
        public String getNickname() {
        return nickname;
        }

            public void setNickname(String nickname) {
        this.nickname = nickname;
        }
        public Integer getRole() {
        return role;
        }

            public void setRole(Integer role) {
        this.role = role;
        }
        public String getRoleName() {
        return roleName;
        }

            public void setRoleName(String roleName) {
        this.roleName = roleName;
        }
        public Integer getType() {
        return type;
        }

            public void setType(Integer type) {
        this.type = type;
        }
        public String getDepartmentGroupIds() {
        return departmentGroupIds;
        }

            public void setDepartmentGroupIds(String departmentGroupIds) {
        this.departmentGroupIds = departmentGroupIds;
        }
        public String getAppleIps() {
        return appleIps;
        }

            public void setAppleIps(String appleIps) {
        this.appleIps = appleIps;
        }
        public String getEmail() {
        return email;
        }

            public void setEmail(String email) {
        this.email = email;
        }
        public LocalDateTime getCreateTime() {
        return createTime;
        }

            public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
        }

    @Override
    public String toString() {
    return "Admin{" +
            "id=" + id +
            ", username=" + username +
            ", password=" + password +
            ", nickname=" + nickname +
            ", role=" + role +
            ", roleName=" + roleName +
            ", type=" + type +
            ", departmentGroupIds=" + departmentGroupIds +
            ", appleIps=" + appleIps +
            ", email=" + email +
            ", createTime=" + createTime +
    "}";
    }
}
